package com.vhall.component.entity.room.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021-06-21 10:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CreateRoomNewVO extends CreateRoomVO implements Serializable {

    private static final long serialVersionUID = -8413143734864219248L;
    /**
     * 直播海报图片地址;短视频封面地址
     */
    @NotNull(message = "封面 不能为空")
    @JsonProperty("image")
    @ParamName("image")
    @Pattern(regexp = "(\\\\s)?|(http(s)?://([\\w-]+\\.)+[\\w-]+[:]?([\\d]+)*(/[\\w- :./?%&=]*)?)", message = "图片地址格式不正确")
    private String imageUrl;

    /**
     * 是否改变了图片：0 否  1是
     */
    private Integer changeimg;

    /**
     * 数据是否有所更改
     */
    @JsonProperty("is_update")
    @ParamName("is_update")
    private Boolean isUpdate;

}
